package cn.fjsay.java.demo4;

public class TriAngleTest {
    public static void main(String[] args) {
        TriAngle t=new TriAngle(4.0,6.0);
        double area =area1(t);
        System.out.println(area);
    }
    public static double area1(TriAngle t){
        double base=t.getBase();
        double height=t.getHeight();
        return (base*height)/2;
    }

}
